import request from '@/utils/request'

// 查询违规管理列表
export function listViolationofwtd(query) {
  return request({
    url: '/system/violationofwtd/list',
    method: 'get',
    params: query
  })
}

// 查询违规管理详细
export function getViolationofwtd(violationId) {
  return request({
    url: '/system/violationofwtd/' + violationId,
    method: 'get'
  })
}

// 新增违规管理
export function addViolationofwtd(data) {
  return request({
    url: '/system/violationofwtd',
    method: 'post',
    data: data
  })
}

// 修改违规管理
export function updateViolationofwtd(data) {
  return request({
    url: '/system/violationofwtd',
    method: 'put',
    data: data
  })
}

// 删除违规管理
export function delViolationofwtd(violationId) {
  return request({
    url: '/system/violationofwtd/' + violationId,
    method: 'delete'
  })
}
